<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/include/TLDInclude.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>抽奖管理平台</title>
<link href="${ctx}/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${ctx}/js/jquery.js"></script>

<script language="javascript">
	$(function(){
    $('.loginbox').css({'position':'absolute','left':($(window).width()-692)/2});
	$(window).resize(function(){  
    $('.loginbox').css({'position':'absolute','left':($(window).width()-692)/2});
    })  
}); 
	
	function checkdata(){
		  if ($("#name").val() == ''||("#pwd").val() == '') {
			  alert("请输入用户名和密码!");
			  return false;
		  }
		return true;
	}
</script> 

</head>

<body style="background-color:#1c77ac; background-image:url(${ctx}/images/light.png); background-repeat:no-repeat; background-position:center top; overflow:hidden;">



    <div id="mainBody">
      <div id="cloud1" class="cloud"></div>
      <div id="cloud2" class="cloud"></div>
    </div>  


<div class="logintop">    
    <span>欢迎登录抽奖管理平台</span>    
    </div>
    
    <div class="loginbody">
    
    <span class="systemlogo"></span> 
       
    <div class="loginbox">
    
    <ul>
     <form:form action="${ctx}/account/login" method="post">
    <li><input id="name" name="name" type="text" class="loginuser" value=""/></li>
    <li><input id="pwd" name="pwd" type="text" class="loginpwd" value="" /></li>
    <li><input name="" type="submit" class="loginbtn" value="登录" onclick="javascript:return checkdata()"   /><label style="color: red;"><c:if test="${not empty msg}">
				${msg}
</c:if></label></li>
</form:form>
    </ul>
    
    
    </div>
    
    </div>
    
    
    
	
    
</body>

</html>
